SOURCES=main.cpp
XX=g++
CFLAGS=-c
LDFLAGS=
OBJECTS=$(SOURCES:.cpp=.o)
EXCUTABLE=main

all: $(SOURCES) $(EXCUTABLE)

$(EXCUTABLE): $(OBJECTS)
	$(XX) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(XX) $(LDFLAGS) $(CFLAGS) $< -o $@

clean:
	rm *.o
